#include "empty.h"


#ifndef __OLED_H
#define __OLED_H


#define OLED_IIC_SCL_PIN		DL_GPIO_PIN_15
#define OLED_IIC_SDA_PIN		DL_GPIO_PIN_16
#define OLED_IIC_GPIO_PORT		GPIOA
#define OLED_IIC_SCL_1			DL_GPIO_setPins(OLED_IIC_GPIO_PORT,OLED_IIC_SCL_PIN)
#define OLED_IIC_SDA_1			DL_GPIO_setPins(OLED_IIC_GPIO_PORT,OLED_IIC_SDA_PIN)
#define OLED_IIC_SCL_0			DL_GPIO_clearPins(OLED_IIC_GPIO_PORT,OLED_IIC_SCL_PIN)
#define OLED_IIC_SDA_0			DL_GPIO_clearPins(OLED_IIC_GPIO_PORT,OLED_IIC_SDA_PIN)


void delay_us(uint32_t u_sec);
void OLED_W_SDA(uint8_t i);
void OLED_W_SCL(uint8_t i);
void OLED_Init(void);
void OLED_Clear(void);
void OLED_I2C_SendByte(uint8_t Byte);
void OLED_ShowChar(uint8_t Line, uint8_t Column, char Char);
void OLED_ShowString(uint8_t Line, uint8_t Column, char *String);
void OLED_ShowNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);
void OLED_ShowSignedNum(uint8_t Line, uint8_t Column, int32_t Number, uint8_t Length);
void OLED_ShowHexNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);
void OLED_ShowBinNum(uint8_t Line, uint8_t Column, uint32_t Number, uint8_t Length);
void OLED_Showdecimal(uint8_t Line,uint8_t Column,float num);
//void OLED_ShowChinese(uint8_t Line,uint8_t Column,uint8_t no);
void OLED_Menu(uint8_t Page);

#endif

